package com.paw.generator;

import lombok.Data;

/**
 * @author lvzihai
 * @date 2021/7/7
 **/
@Data
public class Result<T> {

  private int code;

  private String msg;

  private T content;


  public static <T> Result<T> success(T data){
    Result<T> result = new Result<>();
    result.setCode(200);
    result.setMsg("success");
    result.setContent(data);
    return result;
  }
}
